﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Client.Test
{
    /// <summary>
    /// FrmTestSelectFile.xaml 的交互逻辑
    /// </summary>
    public partial class FrmTestSelectFile : Window
    {
        public FrmTestSelectFile()
        {
            InitializeComponent();
        }
    }
}

namespace Client.ViewModels
{
    public class FrmTestSelectFile_ViewModel : BaseViewModel
    {
        public FrmTestSelectFile_ViewModel()
        {
            this.CMD_AfterSelectFiles = new Command(AfterSelectFiles);
            this.CMD_CancelSelectFiles = new Command(CancelSelectFiles);
        }

        public Command CMD_AfterSelectFiles { get; private set; }
        void AfterSelectFiles(object args)
        {
            if (args is string[] == false)
            {
                return;
            }

            string msg = string.Empty;

            foreach (var item in args as string[])
            {
                msg += $"{item}; ";
            }

            System.Diagnostics.Debug.WriteLine(msg);
        }

        public Command CMD_CancelSelectFiles { get; private set; }
        void CancelSelectFiles()
        {
            string msg = $"cancel";
            System.Diagnostics.Debug.WriteLine(msg);
        }

    }
}
